<!--<div>-->
    <!--<div class="content_title">-->
        <!--<span>活动管理</span>-->
    <!--</div>-->

    <!--<div>-->
        <!--<label for="activityId">ID:</label>-->
        <!--<input type="text" id="activityId" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this)"-->
               <!--onblur="this.v();" class="id_input">-->

        <!--<label for="activityTitle">标题:</label>-->
        <!--<input type="text" id="activityTitle" class="title_input">-->

        <!--<label for="activityStart">创建时间:</label>-->
        <!--<input type="date" id="activityStart" class="date_input"> - -->
        <!--<input type="date" id="activityEnd" class="date_input"><br>-->

        <!--<label for="activity_type">活动归属:</label>-->
        <!--<select id="activity_type" class="select">-->
            <!--<option value=""></option>-->
            <!--<option value="0">热点</option>-->
            <!--<option value="1">话题</option>-->
            <!--<option value="2">月签</option>-->
        <!--</select>-->

        <!--<label for="activity_status">状态:</label>-->
        <!--<select id="activity_status" class="select">-->
            <!--<option value="">全部</option>-->
            <!--<option value="0">已显示</option>-->
            <!--<option value="1">已隐藏</option>-->
        <!--</select>-->

        <!--<button class="common_btn" ng-click="activitySelectAll()">查询</button>-->
        <!--<button class="add_btn" ng-click="activityAdd()">新增</button>-->
    <!--</div>-->
    <!--<div class="page">-->
        <!--<button class="common_btn article_find" ng-click="toBefore()">-->
            <!--上一页-->
        <!--</button>-->
        <!--<span ng-bind-template="当前第{{currentPage}}页"></span>,<span ng-bind-template="一共{{allPage}}页"></span>-->
        <!--<button class="common_btn article_find" ng-click="toAfter()">-->
            <!--下一页-->
        <!--</button>-->
    <!--</div>-->
    <!--<div style="padding-bottom: 50px;">-->
        <!--<table class="table">-->
            <!--<tr>-->
                <!--<th>ID</th>-->
                <!--<th>标题</th>-->
                <!--<th>活动归属</th>-->
                <!--<th>浏览量</th>-->
                <!--<th>点赞数</th>-->
                <!--<th>评论数</th>-->
                <!--<th>转发数</th>-->
                <!--<th>操作</th>-->
            <!--</tr>-->

            <!--<tr ng-repeat="i in listArr">-->
                <!--<td>{{i.activityId}}</td>-->
                <!--<td>-->
                    <!--{{i.title}}-->
                <!--</td>-->
                <!--<td>{{i.father}}</td>-->
                <!--<td>{{i.viewCount}}</td>-->
                <!--<td>{{i.praiseCount}}</td>-->
                <!--<td>{{i.discussCount}}</td>-->
                <!--<td>{{i.shareCount}}</td>-->
                <!--<td>-->
                    <!--<button id="activityChange" class="delete_btn  show{{i.status}}" ng-click="activityChange(i.status,i.activityId,this)">{{change(i.status)}}</button>-->
                    <!--<button class="revise_btn" ng-click="activityUpdate(i.activityId)">修改</button>-->
                <!--</td>-->
            <!--</tr>-->
        <!--</table>-->
    <!--</div>-->
<!--</div>-->

<div>
    <style>
        select{
            min-width: 80px;
        }
        .show0{
            background: #e66262;
            border-color: #e66262;
        }
        .show1{
            background: #2dafe0;
            border-color: #2dafe0;;
        }
        #wrapper{
            background-color: #F3F3F5;
        }
        .layui-layer-title{
            display: none;
        }
        .layui-layer-content{
            background-color: #393D49;
            color: #fff;
            font-size: 16px;
            text-align: center;
            letter-spacing: 2px;
        }
    </style>
    <div class="ibox-content">
        <div role="form" class="form-inline">
            <div class="form-group">
                <label for="exampleInputEmail2" >ID:</label>
                <input type="text" placeholder="活动ID" id="activityId" class="form-control">
            </div>
            <div class="form-group">
                &nbsp;&nbsp;&nbsp;
                <label for="exampleInputPassword2">标题</label>
                <input type="text" placeholder="活动标题" id="activityTitle" class="form-control">
            </div>
            <div class="form-group">
                <div class="form-group">
                    &nbsp;&nbsp;&nbsp;
                    <label class="exampleInputPassword2">创建时间：</label>
                    <input id="activityStart" ng-model="start" class="form-control layer-date" placeholder="开始时间"onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
                </div>
                <div class="form-group">
                    <input id="activityEnd" ng-model="end" class="form-control layer-date" placeholder="结束时间"onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
                </div>
            </div>
            <br>
            <br>
            <div class="form-group">
                <label for="exampleInputPassword2">活动归属:</label>
                <select class="form-control m-b" id="activity_type" >
                    <option value=""></option>
                    <option value="0">热点</option>
                    <option value="1">话题</option>
                    <option value="2">月签</option>
                </select>
                <label for="exampleInputPassword2">&nbsp;&nbsp;&nbsp;&nbsp;状态:</label>
                <select class="form-control m-b"  id="activity_status">
                    <option value="">全部</option>
                    <option value="0">已显示</option>
                    <option value="1">已隐藏</option>
                </select>
                <button class="btn btn-primary" style="position: relative; top: -8px"  ng-click="activitySelectAll()">查询</button>
            </div>
        </div>
        <!--分页-->
        <div >
            <!--<p id="pageIndex" style="font-size:20px;font-weight:bold;color:blue;margin-left:150px;"></p>-->
            <ul class="pagination"></ul>
        </div>
        <!--展示列表区域-->
        <div class="ibox-content">

            <table class="table table-bordered">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>标题</th>
                    <th>活动归属</th>
                    <th>浏览量</th>
                    <th>点赞数</th>
                    <th>评论数</th>
                    <th>转发数</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="i in listArr">
                    <td>{{i.activityId}}</td>
                    <td>
                        <a href="/touch/view/activity.html?activityId={{i.activityId}}&amp;childId=0" target="_blank" class="ng-binding"> {{i.title}} &#8203;&#8203;&#8203;&#8203;</a>
                    </td>
                    <td>{{i.father}}</td>
                    <td>{{i.viewCount}}</td>
                    <td>{{i.praiseCount}}</td>
                    <td>{{i.discussCount}}</td>
                    <td>{{i.shareCount}}</td>
                    <td>
                        <button id="article_change" type="button" class="btn btn-primary btn-sm show{{i.status}}" ng-click="activityChange(i.status,i.activityId,this)">{{change(i.status)}}</button>
                        <button type="button" class="btn btn-primary btn-sm" ng-click="activityUpdate(i.activityId)">修改</button>
                    </td>
                </tr>
                </tbody>
            </table>

        </div>
    </div>
</div>
